
//
//  SampuxDetailContentView.m
//  Sampux
//
//  Created by rzm on 16/7/6.
//  Copyright © 2016年 rzm. All rights reserved.
//

#import "SampuxDetailContentView.h"

@implementation SampuxDetailContentView

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self setupSubView];
    }
    return self;
}

- (void)setupSubView
{
    _contentBtn = [UIButton createButton];
    [self addSubview:_contentBtn];
    _contentBtn.frame = CGRectMake(Sampux6WScale(10), 0, self.width - Sampux6WScale(10), Sampux6HScale(57/2));
    [_contentBtn setImageEdgeInsets:UIEdgeInsetsMake(0, 0, 0, 10)];
    _contentBtn.titleLabel.textColor = THBlackAlplaColor(0.6);
    _contentBtn.userInteractionEnabled = NO;
    _contentBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentCenter;
    _contentBtn.imageEdgeInsets = UIEdgeInsetsMake(0, - Sampux6WScale(20), 0, 0);
    
    _dateLable = [UILabel createLabel];
    _dateLable.frame = CGRectMake(5, _contentBtn.bottom, self.width, self.height - _contentBtn.height);
    _dateLable.textColor = THWhiteAlplaColor(0.9);
    [self addSubview:_dateLable];
    _dateLable.textAlignment = NSTextAlignmentLeft;
}

- (void)setContentStr:(NSString *)contentStr
{
    _contentStr = contentStr;
}

- (void)setNumberStr:(NSString *)numberStr
{
    _numberStr = numberStr;
}

@end
